package com.digital.herbarium.service;

import com.digital.herbarium.Entity.Logger;
import com.digital.herbarium.Entity.Stat;
import com.digital.herbarium.Mapper.LoggerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LoggerService {

    @Autowired
    LoggerMapper loggerMapper;

    public void  save(List<Logger> list){
        loggerMapper.addLogger(list);
    }

    public List<Stat> getGroupByParam(){
        return loggerMapper.getGroupByParam();
    }

}
